package com.sky.cloudbabaadmin.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private RestTemplate restTemplate;

    @RequestMapping("test")
    public String test(){
        return restTemplate.getForObject("http://blog-admin/test",String.class);
    }
}
